class ApiClient{
public:
    ApiClient(String server, String clientId, String token);

    int sync_data(String& value, int humi, int temp);

private:
    int request_api(String api, String ext_data, String& value);
    int http_get(String url, String& resp);
    int get_timestamp();
    String server;
    String token;
    String clientId;
    unsigned int nonce = 0;
};
